Tootsville::Host-Name-Like-P
Function
Host-Name-Like-P names a function, with lambda list
(NAME):
Does NAME meet the general rules of being a DNS host name.
Note that this does NOT recognize etiher dotted-quad IPv4 nor hex IPv6
addresses, only DNS names.
RFC-1035:
- Each label is up to 63 character-bytes.
- The total name length is up to 255 character-bytes, excluding dots.
- Labels must begin with a basic ASCII letter A-Z
- Labels must end with a letter or digit 0-9
- Labels may contain ASCII Hyphen-Minus, but only internally and
never twice in a row.
- At present, all Top-Level Domains are at least two alphabetic
characters and contain no digits nor hyphens.
- This function requires at least one dot; i.e. it is not for TLDs
- The trailing dot for the root should be omitted for this function.
File
Defined in file src/types/uri-types.lisp.